<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - 知识库问答系统</title>
    
    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="~/favicon.ico" />
    
    <!-- Layui CSS -->
    <link rel="stylesheet" href="https://unpkg.com/layui@2.8.18/dist/css/layui.css">
    <!-- FontAwesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <!-- 自定义样式 -->
    <link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">知识库问答系统</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>
                
                <li class="layui-nav-item layui-hide-xs"><a href="/">首页</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="/Home/Knowledge">知识库管理</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="/Home/Chat">智能问答</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="/Home/Settings">系统设置</a></li>
            </ul>
            
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;">
                        <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                        管理员
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                        <dd><a href="">退出登录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        
        <!-- 侧边栏 -->
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="/">
                            <i class="fas fa-home"></i> 首页
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/Knowledge">
                            <i class="fas fa-book"></i> 知识库管理
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/Chat">
                            <i class="fas fa-comments"></i> 智能问答
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/Settings">
                            <i class="fas fa-cog"></i> 系统设置
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/ButtonTest">
                            <i class="fas fa-keyboard"></i> 按钮测试
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/ButtonColorTest">
                            <i class="fas fa-palette"></i> 按钮颜色测试
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/StaticFileTest">
                            <i class="fas fa-file-code"></i> 静态文件测试
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        
        <!-- 主体内容 -->
        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                @RenderBody()
            </div>
        </div>
        
        <!-- 底部固定区域 -->
        <div class="layui-footer">
            © 2024 知识库问答系统 - 基于Layui构建
        </div>
    </div>
    
    <!-- Layui JS -->
    <script src="https://unpkg.com/layui@2.8.18/dist/layui.js"></script>
    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <!-- API配置 -->
    <script src="~/js/api-config.js"></script>
    <!-- 自定义脚本 -->
    <script src="~/js/site.js" />
    
    <script>
        // 初始化Layui
        layui.use(['element', 'layer'], function(){
            var element = layui.element;
            var layer = layui.layer;
            
            // 监听导航点击
            element.on('nav(test)', function(elem){
                console.log('导航点击:', elem);
            });
        });
    </script>
    
    @await RenderSectionAsync("Scripts", required: false)
</body>
</html> 